package com.baizhi.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

/**
 * Created by Administrator on 2019/4/20 0020.
 */
@Data
@TableName(value = "cmfz_resource")
public class CmfzResource {
    @TableId(value = "resource_id",type = IdType.AUTO)
    @JSONField(name = "id")
    private Integer resourceId;
    @JSONField(name = "name")
    private String resourceName;
    @TableField(strategy = FieldStrategy.IGNORED)
    private String resourceUrl;
    @TableField(strategy = FieldStrategy.IGNORED)
    private String resourceType;
    @TableField(strategy = FieldStrategy.IGNORED)
    private String resourcePermission;
    @TableField(strategy = FieldStrategy.IGNORED)
    private Integer resourceParentId;
    @JSONField(name = "children")
    @TableField(exist = false)
    private List<CmfzResource> cmfzResources;

}
